package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.BalanceDao;
import com.platform.entity.BalanceEntity;
import com.platform.service.BalanceService;

/**
 * 用户余额Service实现类
 *
 * @author Rin
 * @email immane@163.com
 * @date 2018-10-10 16:26:45
 */
@Service("balanceService")
public class BalanceServiceImpl implements BalanceService {
    @Autowired
    private BalanceDao balanceDao;

    @Override
    public BalanceEntity queryObject(Integer id) {
        return balanceDao.queryObject(id);
    }

    @Override
    public List<BalanceEntity> queryList(Map<String, Object> map) {
        return balanceDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return balanceDao.queryTotal(map);
    }

    @Override
    public int save(BalanceEntity balance) {
        return balanceDao.save(balance);
    }

    @Override
    public int update(BalanceEntity balance) {
        return balanceDao.update(balance);
    }

    @Override
    public int delete(Integer id) {
        return balanceDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return balanceDao.deleteBatch(ids);
    }
}
